package com.pechas.game.pirates.others;

import java.util.ArrayList;

import com.pechas.game.pirates.model.SubscriptionLine.FSCaptain;
import com.pechas.game.pirates.model.SubscriptionLine.FSFirstMate;
import com.pechas.game.pirates.model.SubscriptionLine.FSRaider;
import com.pechas.game.pirates.model.SubscriptionLine.FSSailor;
import com.pechas.game.pirates.model.SubscriptionLine.FSSecondMate;
import com.pechas.game.pirates.model.SubscriptionLine.FSSpy;
import com.pechas.one.constructs.fields.Field;

public class LocalHelper {

	public static FSCaptain getCaptain(){
		return Field.getFirstSubscriber(ValueConstant.CAPTAIN_FIELD, FSCaptain.class);
	}
	
	public static FSFirstMate getFirstMate(){
		return Field.getFirstSubscriber(ValueConstant.FIRSTMATE_FIELD, FSFirstMate.class);
	}
	
	public static FSSecondMate getSecondMate(){
		return Field.getFirstSubscriber(ValueConstant.SECONDMATE_FIELD, FSSecondMate.class);
	}
	
	public static ArrayList<FSRaider> getReiderList(){
		return Field.getFieldSubscribers(ValueConstant.RAIDER_FIELD, FSRaider.class);
	}
	
	public static ArrayList<FSSailor> getSailorList(){
		return Field.getFieldSubscribers(ValueConstant.SAILOR_FIELD, FSSailor.class);
	}
	
	public static ArrayList<FSSpy> getSpyList(){
		return Field.getFieldSubscribers(ValueConstant.SPY_FIELD, FSSpy.class);
	}
	
}
